<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<button onclick="show()">打开新页面</button>
		<script type="text/javascript">
			
			function show()
			{
				var dw = window.open();
				dw.document.open();
				dw.document.write("<!DOCTYPE html>");
				dw.document.write("<html>");
				dw.document.write("	<head>");
				dw.document.write('	<meta charset="utf-8">');
				dw.document.write("		<title>aaa</title>");
				dw.document.write("	</head>");
				dw.document.write("	<body>测试");
				dw.document.write("	</body>");
				dw.document.write("</html>");
				dw.document.close();
				
			}
		</script>
	</body>
</html>
